package com.atguigu.dao;

import com.atguigu.base.BaseDAO;
import com.atguigu.entity.Admin;

import java.util.List;

/**
 * @PACKAGE_NAME: com.atguigu.dao
 * @CLASSNAME: AdminDAO
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/17 8:57
 * @SINCE 17.0.7
 * @DESCRIPTION: AdminDAO 后台管理员 数据交互层
 */
public interface AdminDAO extends BaseDAO<Admin> {
    List<Admin> findAll();

    /**
     * 通过username获取Admin对象
     * @param username
     * @return
     */
    Admin getByUsername(String username);
}
